package com.earthchen.servlet.controller;


import com.earthchen.servlet.annotation.MyController;
import com.earthchen.servlet.annotation.MyRequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;


/**
 * @author earthchen
 * @date 2018/8/9
 **/
@MyController
@MyRequestMapping("/test")
public class TestController {


    @MyRequestMapping("/doTest")
    public void test1(HttpServletRequest request, HttpServletResponse response,
                      String param) {
        System.out.println(param);
        try {
            response.getWriter().write("doTest method success! param:" + param);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }


}

